#!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@author:吹神
@file:user_api.py
@time:2021/05/06
"""

from config.settings import BASE_URL, ADMIN_TOKEN
from utils.base_request import mi_request


def get_all_user(data):
    """获取所有用户列表"""
    url = BASE_URL + "/user-service/user/admin/getAllUser"
    result = mi_request("post", url, json=data, headers={"Authorization": ADMIN_TOKEN})
    return result.json()
